﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using static O.M.Production.Domain.EnumModel;


namespace O.M.Production.Domain.Entity
{
    /// <summary>
    /// 内部生产表
    /// </summary>
    [SugarTable("internal_product")]
    public class internal_product: BaseModel
    {
        /// <summary>
        /// 生产编号
        /// </summary>
        [SugarColumn(ColumnDescription = "生产编号", IsPrimaryKey = true, Length = 100)]
        public string internal_product_id { get; set; }

        /// <summary>
        /// 生产主题
        /// </summary> 
        [SugarColumn(ColumnDescription = "生产主题", Length = 100)]
        public string? produce_theme { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary> 
        [SugarColumn(ColumnDescription = "单据日期")]
        public DateTime? bill_date { get; set; }

        /// <summary>
        /// 生产类型
        /// </summary> 
        [SugarColumn(ColumnDescription = "生产类型", Length = 100)]
        public Produce_Type? produce_type { get; set; } = Produce_Type.内部生产;

        /// <summary>
        /// 负责人
        /// </summary>
        [SugarColumn(ColumnDescription = "负责人", Length = 100)]
        public Person_In_Charge? person_in_charge { get; set; } = Person_In_Charge.张三;

        /// <summary>
        /// 所在部门
        /// </summary> 
        [SugarColumn(ColumnDescription = "所在部门", Length = 100)]
        public Department? department { get; set; } = Department.部门一;

        /// <summary>
        /// 关联项目
        /// </summary> 
        [SugarColumn(ColumnDescription = "关联项目", Length = 100)]
        public string? associated_project { get; set; }

        /// <summary>
        /// 生产部门
        /// </summary> 
        [SugarColumn(ColumnDescription = "生产部门", Length = 100)]
        public Produce_Department? produce_department { get; set; } = Produce_Department.生产部门一;

        /// <summary>
        /// 生产人员
        /// </summary> 
        [SugarColumn(ColumnDescription = "生产人员", Length = 100)]
        public Produce_Personnel? produce_personnel { get; set; } = Produce_Personnel.张名扬;

        /// <summary>
        /// 销售订单
        /// </summary> 
        [SugarColumn(ColumnDescription = "销售订单", Length = 100)]
        public string? sell_order { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary> 
        [SugarColumn(ColumnDescription = "联系电话", Length = 100)]
        public string? phone { get; set; }

        /// <summary>
        /// 备注
        /// </summary> 
        [SugarColumn(ColumnDescription = "备注", Length = 100)]
        public string? remarks { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnDescription = "附件", Length = 200)]
        public string? attachment {  get; set; }
    }
}
